package com.hdc.hdc.warehouseManage.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 物资与货位的对应关系
 * @author gxy
 *	2018年4月21日
 *	hdc.warehouseManage
 *
 */
@Entity
@Table(name="goods_and_locations")
public class GoodsAndLocations implements Serializable{

	private static final long serialVersionUID = 6560410192491043100L;
	
	@Id
	@Column(name="id")
	@GeneratedValue(generator="uuid")
	@GenericGenerator(name="uuid",strategy="org.hibernate.id.UUIDGenerator")
	private String id;
	
	@Column(name="goods_id")
	private String goodsId;
	
	@Column(name="location_id")
	private String locationId;
	
	@Column(name="goods_num")
	private Long goodsNum;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getLocationId() {
		return locationId;
	}

	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}

	public Long getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(Long goodsNum) {
		this.goodsNum = goodsNum;
	}
	

}
